using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// JumploadWrapper version 2.0 By Derek Holmes, email derekholms@yahoo.com
/// Thanks to Michael Wright for version 1.0 and also to Jumploader itself, seems like a great free tool!
/// This version adds many features including An easy way to include multiple upload options, ability to used imaged editing,
/// Parition Support, bug fixes, examples, etc.
/// 
/// ToDo: Haven't implemented Database file saving per page.
///       Would be nice to implement temp directory for partition uploading
/// </summary>
public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        jload.LookAndFeel = JumploaderWrapper.JumploaderLookAndFeel.System;
        jload.FileTreeVisible = true;
        jload.FileListVisible = true;
        
        jload.Width = Unit.Percentage(100);
        jload.Height = 600;

        jload.AppletParams.Add("vc_uploadViewStartUploadButtonText", "Upload Files");
        jload.AppletParams.Add("vc_uploadViewStartUploadButtonImageUrl", "JumploaderResource.aspx?Resource=page_stack_go&Type=png");
        jload.AppletParams.Add("vc_uploadViewStopUploadButtonText", "Cancel Upload");
        jload.AppletParams.Add("vc_uploadViewStopUploadButtonImageUrl", "JumploaderResource.aspx?Resource=cancel&Type=png");
        jload.AppletParams.Add("vc_uploadViewStopActionVisible", "true");

        jload.AppletParams.Add("vc_mainViewShowUploadErrors", "true");        
    }
}
